package com.dhecp.project.api.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.api.domain.AmazonShopOrder;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * @ClassName AmazonShopOrderMapper
 * @Description TODO
 * @Author alula
 * @Date 2022-09-27 17:16
 */
public interface AmazonShopOrderMapper extends GenericDao<AmazonShopOrder, String> {

    AmazonShopOrder findAmazonShopOrderByGuid(@Param("guid") String guid);

    /**
     * 批量新增亚马逊订单数据
     * @param list
     * @return
     */
    int insertAmazonShopOrderBatch(List<AmazonShopOrder> list);

    /**
     * 删除已有的订单数据
     * @param list
     * @return
     */
    int deleteAmazonShopOrderByMap(List<AmazonShopOrder> list);
}
